let url = ''
// if (process.env.NODE_ENV === 'development') {
// 	url = "/api";
// } else {
// url = "https://llitf.cn/";
url = "http://1.13.5.2/";
// url = window.location.origin+'/'
// }
export const baseUrl = url;
let whiteArr = []
export function http(url, data, method = 'GET') {
	return new Promise((resolve, reject) => {
		uni.request({
			url: url,
			data,
			header: {
				'content-type': 'application/x-www-form-urlencoded',
				'token': uni.getStorageSync('token') || ''
			},
			method,
			success: (res) => {

			},
			fail: (res) => {
			},
			complete: () => {

			}
		});
	})
}
